﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace chatblog.CommonChat
{
    public partial class test : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
             AjaxPro .Utility.RegisterTypeForAjax (typeof (test ));
        }

        [AjaxPro.AjaxMethod ]
        public void ClearChatData()
        {
            CommonChatRoomCache.InitData();
        }

        [AjaxPro .AjaxMethod ]
        public string GetOnLineCount(string roomType)
        {
            return CommonChatRoomCache.GetRoomUserCount (roomType).ToString ();
        }
    }
}
